package com.seal.yoyoshop.dao;

import com.seal.yoyoshop.bin.Goods;

import java.util.List;

public interface GoodsDao {
    List<Goods> selectGoodsByHotType(int type);

    List<Goods> selectGoodsByTypeId(int typeId);

    List<Goods> selectGoodsByTypeId(int typeId, int page, int size);

    long countByTypeId(int typeId);

    long countByHotType(int typeId);

    List<Goods> selectGoodsByHotType(int type, int page, int size);

    List<Goods> selectGoodsByKeyWord(String keyword, int page, int size);

    long countByKeyword(String keyword);

    Goods selectGoodById(int goodId);

    List<Goods> selectGoodsList(Integer page, Integer size);

    long selectGoodsCount();

    boolean addGoodsByGoods(Goods goods);

    boolean addGoodsByGoods(int goodsId);

    boolean updateGoodsByGoods(Goods goods);
}
